package io.renren.modules.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.sys.dao.TSpuDao;
import io.renren.modules.sys.entity.TSpuEntity;
import io.renren.modules.sys.service.TSpuService;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service("tSpuService")
public class TSpuServiceImpl extends ServiceImpl<TSpuDao, TSpuEntity> implements TSpuService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TSpuEntity> page = this.page(
                new Query<TSpuEntity>().getPage(params),
                new QueryWrapper<TSpuEntity>()
        );

        return new PageUtils(page);
    }

}
